package cn.test.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.test.dao.EmployeeDao;
import cn.test.entity.Employee;
@Transactional
@Service
public class EmployeeService {
	@Resource
	private EmployeeDao employeeDao;
     public  void  save(Employee entity){
    	 employeeDao.save(entity);
    	 throw new RuntimeException("一个人为错误");
     }
}
